package com.ruleengine.admin.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import com.ruleengine.admin.NotifyWorkerClient;
import com.ruleengine.worker.rulechain.ChainManager;
import com.ruleengine.worker.runner.chain.ChainRunnerManager;

/**
 * @author lianghanwei on 2024/3/23
 */
@Configuration
public class ReAdminConfig {

    @Bean
    public NotifyWorkerClient notifyWorkerClient(ChainManager chainManager, ChainRunnerManager chainRunnerManager) {
        return new NotifyWorkerClient(chainManager, chainRunnerManager);
    }
}
